package com.haixiaoke.saas.repository.mapper;

import com.haixiaoke.saas.repository.pojo.ApartmentChargeItemUsage;

import java.util.List;

/**
 * 公寓收费项目用量Mapper接口
 *
 * @author qixi
 * @date 2023-06-16
 */
public interface ApartmentChargeItemUsageMapper {
    /**
     * 查询公寓收费项目用量
     *
     * @param usageId 公寓收费项目用量主键
     * @return 公寓收费项目用量
     */
    ApartmentChargeItemUsage selectApartmentChargeItemUsageByUsageId(Long usageId);

    /**
     * 查询公寓收费项目用量列表
     *
     * @param apartmentChargeItemUsage 公寓收费项目用量
     * @return 公寓收费项目用量集合
     */
    List<ApartmentChargeItemUsage> selectApartmentChargeItemUsageList(ApartmentChargeItemUsage apartmentChargeItemUsage);

    /**
     * 新增公寓收费项目用量
     *
     * @param apartmentChargeItemUsage 公寓收费项目用量
     * @return 结果
     */
    int insertApartmentChargeItemUsage(ApartmentChargeItemUsage apartmentChargeItemUsage);

    /**
     * 修改公寓收费项目用量
     *
     * @param apartmentChargeItemUsage 公寓收费项目用量
     * @return 结果
     */
    int updateApartmentChargeItemUsage(ApartmentChargeItemUsage apartmentChargeItemUsage);

    /**
     * 删除公寓收费项目用量
     *
     * @param usageId 公寓收费项目用量主键
     * @return 结果
     */
    int deleteApartmentChargeItemUsageByUsageId(Long usageId);

    /**
     * 批量删除公寓收费项目用量
     *
     * @param usageIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteApartmentChargeItemUsageByUsageIds(Long[] usageIds);

    List<ApartmentChargeItemUsage> selectApartmentChargeItemUsageByBillId(String billId);

    int insertApartmentChargeItemUsageBatch(List<ApartmentChargeItemUsage> usages);
}
